package com.engineering.elink.util.ucpaas;

import java.util.HashMap;
import java.util.Map;

public class Code {
	private static Map<String,String> codeMap = new HashMap<String,String>();
	private static Map<String,String> keyMap = new HashMap<String,String>();
	public static Map<String, String> getCodeMap() {
		return codeMap;
	}

	public static void setCodeMap(Map<String, String> codeMap) {
		Code.codeMap = codeMap;
	}
	public static Map<String, String> getKeyMap() {
		return keyMap;
	}

	public static void setKeyMap(Map<String, String> keyMap) {
		Code.keyMap = keyMap;
	}

	public static String getRandomCode () {
		String code = "";
		for (int i = 0; i < 6; i++) {
			code += (int) ((Math.random() * 9) + 1);
		}
		return code;
	}
}
